import request from '@/utils/request'

// 查询X胸片检查列表
export function listChestRadiograph(query) {
  return request({
    url: '/system/ChestRadiograph/list',
    method: 'get',
    params: query
  })
}

// 查询X胸片检查详细
export function getChestRadiograph(id) {
  return request({
    url: '/system/ChestRadiograph/' + id,
    method: 'get'
  })
}

// 新增X胸片检查
export function addChestRadiograph(data) {
  return request({
    url: '/system/ChestRadiograph',
    method: 'post',
    data: data
  })
}

// 修改X胸片检查
export function updateChestRadiograph(data) {
  return request({
    url: '/system/ChestRadiograph',
    method: 'put',
    data: data
  })
}

// 删除X胸片检查
export function delChestRadiograph(id) {
  return request({
    url: '/system/ChestRadiograph/' + id,
    method: 'delete'
  })
}
